<template>
	<view>
		<view class="content" v-if="detailList.length>0">
			<view class="con_1 display just_space" v-for="(item,index) in detailList" :key="index">
				<view class="" style="line-height: 1.8em;">
					<view class="ft_16 fw-b">
						{{item.memo}}
					</view>
					<view class="c-999">
						<text>{{item.createtime}}</text>
					</view>
				</view>
				<view class="ft_18 fw-b" style="color: #FF9101;">
					{{item.money}}
				</view>
			</view>
		</view>
		<view class="ft_16 fw-b" v-else style="text-align: center;padding: 15px 0;">
			暂无明细
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				background:{backgroundColor: '#ffffff',},
				detailList:[{
					title:'123',
					content:'456',
					createtime:'2021.23.21',
					price:'12'
				}], //明细列表
				
			}
		},
		onLoad() {
			this.getInfo() //获取经销明细
		},
		methods: {
			getInfo(){ //获取经销明细
				this.$myRequest({
					url: 'api/user/money_log',
					method:'POST',
					data:{
						is_fen:1
					}
				}).then(res => {
					if(res.data.code==1){
						// this.$all.setData('userInfo',res.data.data.info)
						// this.user=res.data.data.user
						this.detailList = res.data.data.data
					}else{
						this.detailList = ''
					}
				})
			},
			
		}
	}
</script>

<style lang="scss">
page{
	background-color: #fafafa;
}
.content{
	margin-top: 5px;background-color: #FFFFFF;
	.con_1{
		padding: 20px 15px;
		border-bottom: 1px solid #eeeeee;
	}
	
}
.just_space{
	justify-content: space-between;
}
.ft_16{
	font-size: 16px;
}
.fw-b{
	font-weight: bold;
}
.ft_18{
	font-size: 18px;
}
</style>
